import { ErrorBlock, Button, Space } from 'antd-mobile'
import { useHistory } from 'react-router'

export default function NotFound() {
  const history = useHistory()
  return (
    <ErrorBlock status="default" fullPage title="404" description="走">
      <Space>
        <Button color="primary" onClick={() => history.push('/')}>
          首页
        </Button>
        <Button color="warning" onClick={() => history.go(-1)}>
          上一页
        </Button>
      </Space>
    </ErrorBlock>
  )
}
